package edu.wit.common.constant;

public class CommonConstant {
	

	/**
	 * 项目包名前缀
	 */
	public static final String PROJECT_BACKAGE_PRE = "edu.wit";
	
	/**
	 * 通用分隔符
	 */
	public static final String COMMIN_SPLIT = ",";

    /**
     * 排课唯一标识分隔符
     */
    public static final String PAIKE_COMMIN_SPLIT = "_";
    
    /**
     * 文件唯一标识分隔符
     */
    public static final String FILE_COMMIN_SPLIT = "/";

	/**
	 * 编码
	 */
	public static final String UTF8 = "UTF-8";

	/**
	 * 编码
	 */
	public static final String EXCEL_TYPE = "application/vnd.ms-excel";

	/**
	 * JSON 资源
	 */
	public static final String CONTENT_TYPE = "application/json; charset=utf-8";

    /**
     * 默认账号前缀(用于手机号自动生成账号)，如账号需手动创建生成，需修改创建用户的方式
     */
    public static final String ACCOUNT_PRE = "u";

    /**
     * 默认菜单ID
     */
    public static final Long DEFAULT_MENU_ID = 1L;
    /**
     * 超级管理员ID
     */
    public static final Long SUPER_ADMIN_ID = 1L;
    /**
     * 管理员角色ID
     */
    public static final Long ROLE_ADMIN = 1L;
    /**
     * 通用角色ID
     */
    public static final Long UNIVERSAL_ROLE = 4L;
    
    /**
	 * 字典类型——性别
	 */
	public static final String SEX = "sex";
	
	/**
	 * 字典类型——预约记录
	 */
	public static final String APPOINTMENT_TYPE = "appointment_type";

    /**
     * 字典类型——是否
     */
    public static final String DICT_YES_NOT = "yes_no";
    
    /**
     * 字典类型——消息是否已读
     */
    public static final String IS_READ = "is_read";

	/**
	 * 字典类型——发布状态
	 */
	public static final String PUBLISH_STATUS = "publish_status";
    
	public interface YesNo {
        public static final String YES = "1";
        public static final String NO = "0";

        public static final Integer YES_INT = 1;
        public static final Integer NO_INT = 0;

		public static final boolean YES_BO = true;
		public static final boolean NO_BO = false;
    }

    /**
     * 通用字段
     */
    public interface BaseField {
        /**
         * 新增时间
         */
        public static final String CREATE_TIME = "create_time";
        /**
         * 新增人
         */
        public static final String CREATE_USER_ID = "create_user_id";
        /**
         * 修改时间（逻辑删除或修改）
         */
        public static final String UPDATE_TIME = "update_time";
        /**
         * 修改人ID（逻辑删除或修改）
         */
        public static final String UPDATE_USER_ID = "update_user_id";

    }
    
    /**
     * 常用参数
     * @author zzy
     * 2021-06-10 16:11:49
     */
    public interface BaseParams{
    	public static final String SCHOOL_ID = "schoolId";
		public static final String PROJECT_ID = "projectId";
    	public static final String VISIBLE = "visible";
    	public static final String USER_ID = "userId";
    	public static final String ORDER_BY_COLUMN = "orderByColumn";
    	public static final String ISASC = "isAsc";
    	public static final String CREATE_TIME = "create_time";
    }
    /**
     * 排序
     * @author zzy
     * 2021-07-09 09:25:14
     */
    public interface OrderByParams{
    	public static final String ASC = "ASC";
    	public static final String DESC = "DESC";
    }
    /**
     * 消息是否已读
     */
    public interface IsRead{
    	/**
		 * 未读
		 */
		public static final String UNREAD = "0";
		/**
		 * 已读
		 */
		public static final String READ = "1";
    }
    /**
	 * 发布状态
	 */
	public static interface PublishStatus {

		/**
		 * 草稿
		 */
		public static final String DRAFT = "1";
		/**
		 * 已发布
		 */
		public static final String PUBLISHED = "2";
		/**
		 * 撤销
		 */
		public static final String CANCEL = "3";
	}
	
	public static final String REPORT_STATUS = "report_status";
	
	/**
	 * 上报状态
	 */
	public static interface ReportStatus {

		/**
		 * 已上报
		 */
		public static final String REPORT = "1";
		/**
		 * 修理中
		 */
		public static final String REPAIRING = "2";
		/**
		 * 已完成
		 */
		public static final String FINISH = "3";
	}
	
}
